import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// import fastclick from "fastclick";
import Vant from "vant";
import "vant/lib/index.css";
import "@/common/js/flexible.js";
import "@/common/scss/index.scss";
import VueI18n from 'vue-i18n'
import api from '@/api/api.js'

Vue.prototype.$api = api
Vue.config.productionTip = false;

// fastclick.attach(document.body);

Vue.use(Vant);
Vue.use(VueI18n);


const i18n = new VueI18n({ // 双语
  locale: 'zh',
  messages: {
    'zh': require('@/common/lang/zh'),
    'en': require('@/common/lang/en')
  },
})


const vueer = new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount("#app");

window.$vue = vueer
